home *** CD-ROM | disk | FTP | other *** search
- ; Postscript to PDF conversion script
- ; losely based on ps2pdf batch script supplied
- ; with MSDOS versions of Ghostscript by Matt
- ; Sergeant.
- ;
- ; This script requires Ghostscript to work.
- ; Just copy the Ghostscript folder from
- ; aacd#2 to your hard drive and ensure that
- ; the executeable appropriate to your CPU
- ; is renamed to "GS". You must have
- ; an assign to Ghostscript: set up.
- ;
- ; This script may be used for any purpose
- ; and may be republished by anyone
- ; or in any format including but not
- ; limited to the Aminet, magazine CDs.,
- ; commercial Amiga file collections etc.
- ; on the single condition that it is
- ; kept intact and unedited.
- ; Andrew Korn 14th sept 1999.
-
-
-
-
- if NOT EXISTS Ghostscript:
- echo "This script requires an installation of Ghostscript and an assign
- of ghostscript: to the ghostscript directory to work. Please refer to Amiga
- Active Magazine issue 2 and the AACD#2 for everything you need to get it
- working."
- break
- endif
-
- echo "Amiga Active Magazine Postscript to PDF conversion script. Please tell me what file you would like to convert
-
- stack 65535
-
- RequestFile >ENV:psfile title="Postscript file to convert to PDF"
-
- echo "Now please tell me where you want me to save the pdf file."
-
- requestfile >env:pdffile savemode title="PDF file to save (use .pdf)"
-
-
-
- ghostscript:gs -dNOPAUSE -dBATCH -sDEVICE#pdfwrite -sOutputFile#t:pdfout.pdf $psfile
-
- copy t:pdfout.pdf $pdffile
-
- delete t:pdfout.pdf
-
-
-
- echo "all done!"
-
-
-
-
-
-